package com.str.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.str.pojo.Locus;
import com.str.vo.QueryLocusOfComNumberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 基因座信息表(Locus)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-15 17:33:43
 */
@Mapper
public interface LocusDao extends BaseMapper<Locus> {

    /**
     * 存储前以该试剂盒id查询该试剂盒下是否已存在该基因座信息
     * @param kitId
     * @return
     */
    Locus queryLocusByKitId(@Param("kitId") String kitId, @Param("locusName") String locusName);

    /**
     * 按组分数统计基因座占比
     * @return
     */
    QueryLocusOfComNumberVO queryLocusOfComNumber();
}

